import request from '@/utils/request'


/**
 * 获取树状分类
 */


export function getCategoryTreeAll(data){
  return request({
    url: 'category/getCategoryTreeAll',
    method: 'post',
    data: { body: data }
  })
}

/**
 * 获取所有一级分类
 */

export function getParentCategoryAll(data){
  return request({
    url: 'category/getParentCategoryAll',
    method: 'post',
    data: { body: data }
  })
}
